import Layout from '@/layout'
import EmptyLayout from '@/layout/empty'

export default {
    path: '/permissionManager',
    component: Layout,
    redirect: '/permissionManager/menu',
    name: 'permissionManager',
    meta: {
        title: '权限管理',
        icon: 'sidebar-permission'
    },
    children: [
        {
            path: 'menu',
            name: 'permissionManagerMenu',
            component: EmptyLayout,
            redirect: '/permissionManager/menu/list',
            meta: {
                title: '菜单配置'
            },
            children: [
                {
                    path: 'list',
                    component: () => import(/* webpackChunkName: 'breadcrumb_example' */
                        '@/views/permission_manager/menu/Index'),
                    meta: {
                        title: '菜单列表',
                        sidebar: false,
                        breadcrumb: false
                    }
                },
            ]
        },
        {
            path: 'role',
            name: 'permissionManagerRole',
            component: EmptyLayout,
            redirect: '/permissionManager/role/list',
            meta: {
                title: '角色管理'
            },
            children: [
                {
                    path: 'list',
                    component: () => import(/* webpackChunkName: 'breadcrumb_example' */
                        '@/views/permission_manager/role/Index'),
                    meta: {
                        title: '角色列表',
                        sidebar: false,
                        breadcrumb: false
                    }
                },
            ]
        }
    ]
}
